package com.sgcc.activiti.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sgcc.common.core.annotation.Excel;
import com.sgcc.common.core.web.domain.BaseEntity;

/**
 * 广告管理结果对象 o_content_ad
 * 
 * @author sgcc
 * @date 2021-04-07
 */
public class OContentAd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private String id;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String remarks;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    @Excel(name = "逻辑删除标记", readConverterExp = "0=：显示；1：隐藏")
    private String delFlag;

    /** 有发起流程的需写入工单编号，如果流程结束，工单编号置空 */
    @Excel(name = "有发起流程的需写入工单编号，如果流程结束，工单编号置空")
    private String appNo;

    /** 总部业务唯一标识，网上国网广告ID */
    @Excel(name = "总部业务唯一标识，网上国网广告ID")
    private String newId;

    /** 广告banner图ID */
    @Excel(name = "广告banner图ID")
    private String bannerpicId;

    /** 是否立即发布,1立即 */
    @Excel(name = "是否立即发布,1立即")
    private String isPublish;

    /** 应用类型,采用标准编码publishType1	图片 2	微应用 3	链接地址 4	无链接 */
    @Excel(name = "应用类型,采用标准编码publishType1	图片 2	微应用 3	链接地址 4	无链接")
    private String publishType;

    /** 广告类型,1.静态图片 */
    @Excel(name = "广告类型,1.静态图片")
    private String advtypeId;

    /** 广告名称 */
    @Excel(name = "广告名称")
    private String adName;

    /** 广告详情图,链接地址/图片地址/微应用链接 如果是广告类型为1，传服务连接平台返回id；如果广告类型为2，传移动交互平台返回的微应 */
    @Excel(name = "广告详情图,链接地址/图片地址/微应用链接 如果是广告类型为1，传服务连接平台返回id；如果广告类型为2，传移动交互平台返回的微应")
    private String advpoPicture;
    /** 展示场景,sceneShow,3 住宅   5 店铺 6 企事业 */
    @Excel(name = "展示场景,sceneShow,3 住宅   5 店铺 6 企事业")
    private String sceneShow;

    /** banner位置显示276 banner2  ，277 banner3 */
    @Excel(name = "banner位置显示276 banner2  ，277 banner3")
    private String advPositionName;

    /** 广告发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "广告发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adStartTime;

    /** 广告结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "广告结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adEndTime;

    /** 广告小图 */
    @Excel(name = "广告小图")
    private String advUrl;

    /** 发布状态,advIssueState,1	已上架 2	已下架 */
    @Excel(name = "发布状态,advIssueState,1	已上架 2	已下架")
    private String adState;

    /** 备用1 */
    @Excel(name = "备用1")
    private String spareOne;

    /** 备用2 */
    @Excel(name = "备用2")
    private String spareTwo;

    /** 备用3（工单编号） */
    @Excel(name = "备用3", readConverterExp = "工=单编号")
    private String spareThree;

    /** 备用4（维护类型） */
    @Excel(name = "备用4", readConverterExp = "维=护类型")
    private String spareFour;

    /** 备用5(工单到达时间) */
    @Excel(name = "备用5(工单到达时间)")
    private String spareFive;


    private String adId; //广告唯一标识


    private String advBannerUrl; //生成的广告banner图片访问地址

    private String advIssueState; //发布状态 1：已上架  2：已下架

    private String advIssueStateName;//发布状态 1：已上架  2：已下架

    private String advPoPicture; //1.广告详情图地址2.微应用编码

    private String endTime; //结束时间 yyyy-MM-dd HH:mm:ss

    private String publishTypeName; //1.图片 2.微应用

    private String startTime; //发布时间 yyyy-MM-dd HH:mm:ss


    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setAppNo(String appNo) 
    {
        this.appNo = appNo;
    }

    public String getAppNo() 
    {
        return appNo;
    }
    public void setNewId(String newId) 
    {
        this.newId = newId;
    }

    public String getNewId() 
    {
        return newId;
    }
    public void setBannerpicId(String bannerpicId) 
    {
        this.bannerpicId = bannerpicId;
    }

    public String getBannerpicId() 
    {
        return bannerpicId;
    }
    public void setIsPublish(String isPublish) 
    {
        this.isPublish = isPublish;
    }

    public String getIsPublish() 
    {
        return isPublish;
    }
    public void setPublishType(String publishType) 
    {
        this.publishType = publishType;
    }

    public String getPublishType() 
    {
        return publishType;
    }
    public void setAdvtypeId(String advtypeId) 
    {
        this.advtypeId = advtypeId;
    }

    public String getAdvtypeId() 
    {
        return advtypeId;
    }
    public void setAdName(String adName) 
    {
        this.adName = adName;
    }

    public String getAdName() 
    {
        return adName;
    }
    public void setAdvpoPicture(String advpoPicture) 
    {
        this.advpoPicture = advpoPicture;
    }

    public String getAdvpoPicture() 
    {
        return advpoPicture;
    }
    public void setSceneShow(String sceneShow) 
    {
        this.sceneShow = sceneShow;
    }

    public String getSceneShow() 
    {
        return sceneShow;
    }
    public void setAdvPositionName(String advPositionName) 
    {
        this.advPositionName = advPositionName;
    }

    public String getAdvPositionName() 
    {
        return advPositionName;
    }
    public void setAdStartTime(Date adStartTime) 
    {
        this.adStartTime = adStartTime;
    }

    public Date getAdStartTime() 
    {
        return adStartTime;
    }
    public void setAdEndTime(Date adEndTime) 
    {
        this.adEndTime = adEndTime;
    }

    public Date getAdEndTime() 
    {
        return adEndTime;
    }
    public void setAdvUrl(String advUrl) 
    {
        this.advUrl = advUrl;
    }

    public String getAdvUrl() 
    {
        return advUrl;
    }
    public void setAdState(String adState) 
    {
        this.adState = adState;
    }

    public String getAdState() 
    {
        return adState;
    }
    public void setSpareOne(String spareOne) 
    {
        this.spareOne = spareOne;
    }

    public String getSpareOne() 
    {
        return spareOne;
    }
    public void setSpareTwo(String spareTwo) 
    {
        this.spareTwo = spareTwo;
    }

    public String getSpareTwo() 
    {
        return spareTwo;
    }
    public void setSpareThree(String spareThree) 
    {
        this.spareThree = spareThree;
    }

    public String getSpareThree() 
    {
        return spareThree;
    }
    public void setSpareFour(String spareFour) 
    {
        this.spareFour = spareFour;
    }

    public String getSpareFour() 
    {
        return spareFour;
    }
    public void setSpareFive(String spareFive) 
    {
        this.spareFive = spareFive;
    }

    public String getSpareFive() 
    {
        return spareFive;
    }

    public String getAdId() {
        return adId;
    }

    public void setAdId(String adId) {
        this.adId = adId;
    }

    public String getAdvBannerUrl() {
        return advBannerUrl;
    }

    public void setAdvBannerUrl(String advBannerUrl) {
        this.advBannerUrl = advBannerUrl;
    }

    public String getAdvIssueState() {
        return advIssueState;
    }

    public void setAdvIssueState(String advIssueState) {
        this.advIssueState = advIssueState;
    }

    public String getAdvIssueStateName() {
        return advIssueStateName;
    }

    public void setAdvIssueStateName(String advIssueStateName) {
        this.advIssueStateName = advIssueStateName;
    }

    public String getAdvPoPicture() {
        return advPoPicture;
    }

    public void setAdvPoPicture(String advPoPicture) {
        this.advPoPicture = advPoPicture;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getPublishTypeName() {
        return publishTypeName;
    }

    public void setPublishTypeName(String publishTypeName) {
        this.publishTypeName = publishTypeName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("remarks", getRemarks())
            .append("delFlag", getDelFlag())
            .append("appNo", getAppNo())
            .append("newId", getNewId())
            .append("bannerpicId", getBannerpicId())
            .append("isPublish", getIsPublish())
            .append("publishType", getPublishType())
            .append("advtypeId", getAdvtypeId())
            .append("adName", getAdName())
            .append("advpoPicture", getAdvpoPicture())
            .append("sceneShow", getSceneShow())
            .append("advPositionName", getAdvPositionName())
            .append("adStartTime", getAdStartTime())
            .append("adEndTime", getAdEndTime())
            .append("advUrl", getAdvUrl())
            .append("adState", getAdState())
            .append("spareOne", getSpareOne())
            .append("spareTwo", getSpareTwo())
            .append("spareThree", getSpareThree())
            .append("spareFour", getSpareFour())
            .append("spareFive", getSpareFive())
            .toString();
    }
}
